import {homeRouter, loginRouter} from '../../router/router';

const app = {
    state: {
        routers: [
            loginRouter,homeRouter
        ],
        menuList:[]
    },
    mutations: {
        updateAppRouter(state, routes) {
            state.routers.push(...routes);

        },
        updateMenulist(state, routes) {
            state.menuList = routes;
        },
    }
};
export default app;
